var ids = getvl("id");
var yess = getvl("de");
$(function(){
	if(ids!=""){
	 if(yess!=""){
	 	var sss='<h4 ><img src="../images/public_radio_selcet.png" />你已成功生成订单</h4>'+
	 	'<p>(24小时未支付将自动取消)</p>';
	 	           $(".p_dizhi").html("待客下单详情");
	 	           $(".sell_erweima_button").html("");
	 	           $(".sell_shengcheng").html(sss);
		$("#text").val("http://wx.jiagangwangluo.com/wx/buy/12.8.2buy_dingdan_daikexiadan_detail.html?id="+ids);
		makeCode(); 
		}else{
		$("#text").val("http://wx.jiagangwangluo.com/wx/buy/12.8.2buy_dingdan_daikexiadan_detail.html?id="+ids);
		makeCode();
		}
	
		//xinzhengdizhi();
	}
});
/*
function xinzhengdizhi(){
	
		$("#erweima").attr("src","");
	$.ajax({
		url: urlcore + "/api/order/selectorder?id="+ids,
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
				if(data.data.orderQrcode!=null){
						$("#erweima").attr("src",data.data.orderQrcode);
						
				}
			
			}
		},
		error:function() {
			/* Act on the event 
			alert("error");
		}
	});	

}

*/